package com.iyunsir.user.mapper;

import com.iyunsir.user.controller.query.UserListQuery;
import com.iyunsir.user.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    User getUser(User user);

    List<User> findAll(@Param("query") UserListQuery query);

    Long countAll(@Param("query") UserListQuery query);

    void insert(@Param("user") User user);

    void updateById(@Param("user") User user);

    User findById(@Param("userId") Integer userId);

    void deleteUserByIds(String ids);
}
